<!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.0 Strict//EN' 'http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html; charset=us-ascii' />
<title>The elementtree.SgmlopXMLTreeBuilder Module</title>
<link rel='stylesheet' href='effbot.css' type='text/css' />
</head>
<body>
<h1>The elementtree.SgmlopXMLTreeBuilder Module</h1>
<p>Tools to build element trees from XML, based on the SGMLOP parser.
</p><p>
The current version does not support XML namespaces.
</p><p>
This tree builder requires the <b>sgmlop</b> extension module
(available from
<a href="http://effbot.org/downloads">http://effbot.org/downloads</a>).
</p><h2>Module Contents</h2>
<dl>
<dt><b>TreeBuilder(html=0)</b> (class) [<a href='#elementtree.SgmlopXMLTreeBuilder.TreeBuilder-class'>#</a>]</dt>
<dd>
<p>ElementTree builder for XML source data, based on the SGMLOP parser.</p>
<p>For more information about this class, see <a href='#elementtree.SgmlopXMLTreeBuilder.TreeBuilder-class'><i>The TreeBuilder Class</i></a>.</p>
</dd>
</dl>
<h2><a id='elementtree.SgmlopXMLTreeBuilder.TreeBuilder-class' name='elementtree.SgmlopXMLTreeBuilder.TreeBuilder-class'>The TreeBuilder Class</a></h2>
<dl>
<dt><b>TreeBuilder(html=0)</b> (class) [<a href='#elementtree.SgmlopXMLTreeBuilder.TreeBuilder-class'>#</a>]</dt>
<dd>
<p>ElementTree builder for XML source data, based on the SGMLOP parser.</p>
</dd>
<dt><a id='elementtree.SgmlopXMLTreeBuilder.TreeBuilder.close-method' name='elementtree.SgmlopXMLTreeBuilder.TreeBuilder.close-method'><b>close()</b></a> &rArr; Element [<a href='#elementtree.SgmlopXMLTreeBuilder.TreeBuilder.close-method'>#</a>]</dt>
<dd>
<p>Finishes feeding data to the parser.</p>
<dl>
<dt>Returns:</dt>
<dd>
An element structure.</dd>
</dl><br />
</dd>
<dt><a id='elementtree.SgmlopXMLTreeBuilder.TreeBuilder.feed-method' name='elementtree.SgmlopXMLTreeBuilder.TreeBuilder.feed-method'><b>feed(data)</b></a> [<a href='#elementtree.SgmlopXMLTreeBuilder.TreeBuilder.feed-method'>#</a>]</dt>
<dd>
<p>Feeds data to the parser.</p>
<dl>
<dt><i>data</i></dt>
<dd>
Encoded data.</dd>
</dl><br />
</dd>
</dl>
</body></html>
